package com.food.restaurantpro.log;

import com.food.restaurantpro.Config;
import com.food.restaurantpro.R;
import com.food.restaurantpro.RestaurantApp;

/**
 * 
 * @author Duy Pham
 * 
 */

public class Log {

	public static void i(String className, String methodName, String message){
		if (Config.DEV_MODE){
			android.util.Log.i(RestaurantApp.CURRENT_CONTEXT.getString(R.string.app_name),"INFO: CLASS " + className + " METHOD " + methodName + ": " + message);
		}
	}
	
	public static void e(String className, String methodName, Exception e){
		if (Config.DEV_MODE){
			android.util.Log.e(RestaurantApp.CURRENT_CONTEXT.getString(R.string.app_name), "ERROR: CLASS " + className + " METHOD " + methodName, e);
		}
	}
	
	public static void w(String className, String methodName, String message){
		if (Config.DEV_MODE){
			android.util.Log.w(RestaurantApp.CURRENT_CONTEXT.getString(R.string.app_name),"WARN: CLASS " + className + " METHOD " + methodName +": " + message);
		}
	}
}
